using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
using System.Xml.Serialization;
using System.Drawing;
using System.Xml;
using System.Windows.Forms;

namespace TVDesigner.Entities.Elements
{
    [XmlRoot("HText")]
    public class HText : GenericComponent
    {
        private string _Text;
        private System.Drawing.Color _Foreground;
        //private double _Alpha;
        private System.Drawing.Color _Background;
        private ContentAlignment _TextAlign;

        private Font _Font;

        public HText()
            : base()
        {
        }

        #region Propriedades

        [XmlElementAttribute("Background")]
        [Category("Apperance")]
        public System.Drawing.Color Background
        {
            get { return _Background; }
            set { _Background = value; }
        }

        //[XmlAttributeAttribute("Alpha")]
        //[Category("Apperance")]
        //public double Alpha
        //{
        //    get { return _Alpha; }
        //    set { _Alpha = value; }
        //}

        [XmlElementAttribute("Foreground")]
        [Category("Apperance")]
        public System.Drawing.Color Foreground
        {
            get { return _Foreground; }
            set { _Foreground = value; }
        }
        [XmlAttributeAttribute("Text")]
        [Category("Apperance")]
        public string Text
        {
            get { return _Text; }
            set { _Text = value; }
        }

        [XmlElementAttribute("TextAlign")]
        [Category("Layout")]
        public ContentAlignment TextAlign
        {
            get { return _TextAlign; }
            set { _TextAlign = value; }
        }

        //[XmlElementAttribute("Font")]
        [XmlIgnoreAttribute()]
        [Category("Apperance")]
        public Font Font
        {
            get { return _Font; }
            set { _Font = value; }
        }


        #endregion
    }
}
